<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello mdui</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<script type="text/javascript" src="../../statics/common/js/header.js"></script>
		<link rel="stylesheet" href="../../statics/mdui/css/mdui.min.css">
		<style>
			html,body {
				background-color: #efeff4;
			}
			.title{
				margin: 20px 15px 10px;
				color: #6d6d72;
				font-size: 15px;
			}
		</style>
	</head>

	<body>
		<!--<header class="mdui-bar mdui-bar-nav">
			<a class="mdui-action-back mdui-icon mdui-icon-left-nav mdui-pull-left"></a>
			<h1 class="mdui-title">设置</h1>
		</header>-->
		<div class="mdui-content">
			<div class="title">
				这是webview模式选项卡中的第4个子页面，该页面展示一个常见的设置示例
			</div>
			<ul class="mdui-table-view">
				<li class="mdui-table-view-cell">
					<a class="mdui-navigate-right">
						新消息通知
					</a>
				</li>
				<li class="mdui-table-view-cell">
					<a class="mdui-navigate-right">
						隐私
					</a>
				</li>
				<li class="mdui-table-view-cell">
					<a class="mdui-navigate-right">
						通用
					</a>
				</li>
			</ul>
			<ul class="mdui-table-view" style="margin-top: 25px;">
				<li class="mdui-table-view-cell">
					<a id="about" class="mdui-navigate-right">
						关于mdui
					</a>
				</li>
			</ul>
			<ul class="mdui-table-view" style="margin-top: 25px;">
				<li class="mdui-table-view-cell">
					<a style="text-align: center;color: #FF3B30;">
						退出登录
					</a>
				</li>
			</ul>
		</div>
		</style>
	</body>
	<script src="../../statics/mdui/js/mdui.min.js"></script>
	<script>
		mdui.init({
			swipeBack:true //启用右滑关闭功能
		});
		document.getElementById("about").addEventListener('tap',function () {
			//获得主页面的webview
			var main = plus.webview.currentWebview().parent();
			//触发主页面的gohome事件
			mdui.fire(main,'gohome');
		});
	</script>
</html>